﻿using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Text;
using ZYHand.DTO;
using ZYHand.Entity;

namespace ZYHand.IRepository
{
   public  interface IElasticSearchRepository
    {
        public bool Post<T>(string index, T data) where T : class, new();
        public bool PostByString(string index, ExpandoObject data);
        public SearchData<T> Match<T>(string keywords, string index = "order", int from = 1, int size = 10);
        }
}
